package com.xtkj.stcrm.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xtkj.stcrm.dao.IUserMapper;
import com.xtkj.stcrm.pojo.User;
import com.xtkj.stcrm.service.IUserService;

@Service("userService")
public class UserServiceImpl implements IUserService {

	@Autowired
	private IUserMapper userDao;
	
	public User checkLogin(String loginId) {
		User user = userDao.checkLogin(loginId);
		if("".equals(user.getLoginId())) {
			return null;
		}
		return user;
	}

}











